package com.shixun.dds_11.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shixun.dds_11.entity.DdsCart;
import com.shixun.dds_11.entity.DdsGoods;
import com.shixun.dds_11.result.PageResult;
import com.shixun.dds_11.result.Result;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author YSP
 * @since 2024-07-05
 */
public interface IDdsCartService extends IService<DdsCart> {

    Result insert(DdsGoods ddsGoods);

    PageResult getList(Integer id);

    Result change(Integer id,Integer count);

    Integer toPay(ArrayList<Integer> ids,int userId);

    int getByUserId(Integer id);

}
